package cn.edu.ctbu.datajpa01.repository;

import cn.edu.ctbu.datajpa01.domain.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;

import java.awt.print.Pageable;
import java.util.List;

public interface StudentRepository extends JpaRepository<Student,Integer> {

//    按名字查询
        List<Student> findByName(String name);
//        按名字和密码查询
        List<Student> findByNameAndPassword(String name,String password);


}
